/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-05-10
 * Time: 19:10
 */
public class test1 {
    public static void main(String[] args) {
        int i = 1;
        for(i = 1;i <= 5;i++){
            if(i == 3){
                continue;
            }
            System.out.println(i);
        }
    }
    public static void main8(String[] args) {
        //计算 1! + 2! + 3! + 4! + 5!
        int i = 1;
        int sum = 0;
        for(i = 1;i <= 5;i++){
            int j = 1;
            int ret = 1;
            for(j = 1;j <= i;j++){
                ret *= j;
            }
            sum += ret;
        }
        System.out.println(sum);
    }
    public static void main7(String[] args) {
        //计算5！
        int i = 1;
        int ret = 1;
        for(i = 1;i <= 5; i++){
            ret *= i;
        }
        System.out.println(ret);
    }
    public static void main6(String[] args) {
        //计算 1! + 2! + 3! + 4! + 5!
        int i = 1;
        int sum = 0;
        while(i <= 5){
            int j = 1;
            int ret = 1;
            while(j <= i){
                ret *= j;
                j++;
            }
            i++;
            sum += ret;
        }
        System.out.println(sum);
    }
    public static void main5(String[] args) {
        //计算 5 的阶乘
        int a = 1;
        int ret = 1;
        while(a <= 5){
            ret *= a;
            a++;
        }
        System.out.println(ret);
    }
    public static void main4(String[] args) {
        // 计算 1 - 100 的和
        int a = 1;
        int sum =0;
        while(a <= 100){
            sum += a;
            a++;
        }
        System.out.println(sum);
    }

    public static void main3(String[] args) {
        //打印 1 - 10 的数字
        int a = 1;
        while(a <= 10){
            System.out.println(a);
            a++;
        }
    }

    public static void main2(String[] args) {
        //判断闰年
        int year = 2025;
        if((year % 100 == 0) && (year % 4 != 0) || (year % 400 == 0)){
            System.out.println("闰年");
        }else{
            System.out.println("不是闰年");
        }
    }
    public static void main1(String[] args) {
        System.out.println("aaa");
        System.out.println("bbb");
        System.out.println("ccc");
    }
}
